package com.avidys.jwom.client.ui;

import com.extjs.gxt.ui.client.Style.Orientation;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.extjs.gxt.ui.client.widget.table.Table;
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
import com.extjs.gxt.ui.client.widget.table.TableColumn;
import com.extjs.gxt.ui.client.widget.layout.RowData;
import com.extjs.gxt.ui.client.Style;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import java.util.Collections;
import java.util.List;
import java.util.Vector;

import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;

public class GameList extends Dialog {

	public GameList() {
		setModal(true);
		setHeading("New Dialog");
		setLayout(new RowLayout(Orientation.VERTICAL));
		
		Vector <ColumnConfig> col = new Vector();
		ColumnConfig columnConfig = new ColumnConfig("id","ID",30);
		col.add(columnConfig);
		col.add(new ColumnConfig("name","Name",120));
		col.add(new ColumnConfig("status","Status",10));
		ColumnModel cm = new ColumnModel(col );
		Grid grid = new Grid(new ListStore(), cm);
		add(grid, new RowData(1.0, 1.0, new Margins()));
		grid.setBorders(true);
	}

}
